package com.miyu.system.pojo.system;


import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;


/**
 * 用户表;
 * @author : miyu
 * @date : 2023-7-22
 */
@ApiModel(value = "用户表",description = "")
@Data
@Entity
@Table(name="sys_user")
@TableComment("菜单表")
public class SysUser implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @GeneratedValue(generator = "jpa-uuid")
    @ApiModelProperty(value="主键",notes = "")
    @ColumnComment("主键")
    @Column(name = "user_id", nullable = false,length=32 )
    private String userId ;
    /** 用户名 */
    @ApiModelProperty(value="用户名",notes = "")
    @ColumnComment("用户名")
    @Column(name = "user_name", nullable = true,length=90 )
    private String userName ;
    /** 用户编码 */
    @ApiModelProperty(value="用户编码",notes = "")
    @ColumnComment("用户编码")
    @Column(name = "user_code", nullable = true,length=20 )
    private String userCode ;
    /** 密码 */
    @ApiModelProperty(value="密码",notes = "")
    @ColumnComment("密码")
    @Column(name = "user_password", nullable = true,length=50 )
    private String userPassword ;
    /** 邮箱 */
    @ApiModelProperty(value="邮箱",notes = "")
    @ColumnComment("邮箱")
    @Column(name = "user_email", nullable = true,length=90 )
    private String userEmail ;
    /** 手机 */
    @ApiModelProperty(value="手机",notes = "")
    @ColumnComment("手机")
    @Column(name = "user_phone", nullable = true,length=11 )
    private Integer userPhone ;
    /** 头像 */
    @ApiModelProperty(value="头像",notes = "")
    @ColumnComment("头像")
    @Column(name = "user_img", nullable = true,length=90 )
    private String userImg ;
    /** 是否停用;默认0 使用 */
    @ApiModelProperty(value="是否停用",notes = "默认0 使用")
    @ColumnComment("是否停用")
    @Column(name = "is_stop", nullable = true,length=1 )
    private String isStop = "0" ;
    /** 是否使用;默认1 使用 */
    @ApiModelProperty(value="是否使用",notes = "默认1 使用")
    @ColumnComment("是否使用")
    @Column(name = "is_use", nullable = true,length=1 )
    private String isUse = "1" ;
    /** 来源 */
    @ApiModelProperty(value="来源",notes = "")
    @ColumnComment("来源")
    @Column(name = "source_id", nullable = true,length=32 )
    private String sourceId ;
    /** 备注 */
    @ApiModelProperty(value="备注",notes = "")
    @ColumnComment("备注")
    @Column(name = "remark", nullable = true,length=90 )
    private String remark ;
}